home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / win / ch24 / 24fig03.wrl < prev    next >
Text File  |  1996-09-23  |  481b  |  25 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Sound emitter
  8.         Sound {
  9.             source DEF Source AudioClip {
  10.                 url "tone1.wav"
  11.                 loop FALSE
  12.             }
  13.             minFront 5.0
  14.             minBack  5.0
  15.             maxFront 10.0
  16.             maxBack  10.0
  17.         },
  18.     # Sound emitter markers
  19.         Inline { url "sndmark.wrl" },
  20.     # Sensor
  21.         DEF Touch TouchSensor { }
  22.     ]
  23. }
  24. ROUTE Touch.touchTime TO Source.set_startTime
  25.